#include <stdio.h>

int a() {
    return 0;
}

int main() {
    int a, b, c;
    scanf("%d % d % d", &a, &b, &c);
    for (int i = 0; i < 53; i++) {
        if (a > b) {
            int temp;
            temp = b;
            b = a;
            a = temp;
        } else if (b > c) {
            int temp;
            temp = c;
            c = b;
            b = temp;
        }
    }
    printf("%d\n", 123);
    printf("%d %d %d", a, b, c);
    return 0;
}
